#!/bin/sh
#
# June 6, 2004
# 
# Hi, everyone.  To set your e-mail as read, and have the mailbox icon in the
# deskbar turn back into an empty one, set the line below to whatever your
# inbox folder is, and that's it!  You can place this script in your
# /boot/home/config/settings/Mail/Menu Links folder and it will show up when
# you right click the the mailbox icon in the deskbar.  Now you can clear out
# the new messages folder, and the mailbox icon with a single click!  (I would
# rather just change the icon's behavior to change to empty upon clicking it.
# I'll see if the authors of MDR will change that.)
# 
# I also just added a few lines that will kill the Spam Server as well (the
# last three lines).  I find that useful.  If you decide you do not want that
# option, just erase the lines.  However, if you decide to put them back, they
# need to be in the order they are in, or the debugger will make an appearance!
# :) Another way to quit the SpamServer, if you have "hey"
# (http://www.bebits.com/app/3332) installed, is to simply use the line:
#
# hey AGMSBayesianSpamServer quit
#
# which is a cleaner way of doing it.  The first way might give you an error
# message sometimes.  The script will work, however, with having to close an
# extra error window as well.  You can choose your option by removing the
# number sign in front of the line(s).
# 
# Optionally, you can make a separate script for killing the Spam Server.  If
# you do, make a copy of this script, as in, close this document, and make a
# copy with the tracker, open the copy with a text editor (like StyledEdit) and
# delete the first non #'d line.  If you open up a fresh document with, say,
# StyledEdit, and just copy the contents from here into there, it will not
# work.  Clicking on your new script will only bring up the contents of the
# script in your text viewer, and won't give you the function of the script.
#
# P.S.  I named this Zet As Read, and not Set As Read, as in, with a Z instead
# of an S, because, that way, the icon will show up next to the "new messages"
# link and not the "Sent Today" link.
#
# Submitted by Sebastian Arana, sarana@fas.harvard.edu.

addattr MAIL:status Read /boot/home/mail/inbox/*

# hey AGMSBayesianSpamServer quit

# kill CommanderLooper
# kill "w>Alexander G. M. Smith's Bayes"
# kill AGMSBayesianSpamServer
